<?php /* Smarty version Smarty-3.1.18, created on 2014-09-29 09:28:59
         compiled from "C:\wwwnote\utanote.jp\include\temp\parts\page.tpl" */ ?>
<?php /*%%SmartyHeaderCode:127605428a7cb950584-98172440%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8970f1e1b8e088a014c65700841e33d40593ac7e' => 
    array (
      0 => 'C:\\wwwnote\\utanote.jp\\include\\temp\\parts\\page.tpl',
      1 => 1410225600,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '127605428a7cb950584-98172440',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'page' => 0,
    'min' => 0,
    'max' => 0,
    'count' => 0,
    'limit' => 0,
    'query' => 0,
    'v' => 0,
    '_param' => 0,
    'queryString' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5428a7cba17931_22216086',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5428a7cba17931_22216086')) {function content_5428a7cba17931_22216086($_smarty_tpl) {?><?php $_smarty_tpl->tpl_vars['min'] = new Smarty_variable($_smarty_tpl->tpl_vars['page']->value-2, null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['min']->value<=0) {?><?php $_smarty_tpl->tpl_vars['min'] = new Smarty_variable(1, null, 0);?><?php }?>
<?php $_smarty_tpl->tpl_vars['max'] = new Smarty_variable($_smarty_tpl->tpl_vars['min']->value+5, null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['max']->value>ceil($_smarty_tpl->tpl_vars['count']->value/$_smarty_tpl->tpl_vars['limit']->value)) {?><?php $_smarty_tpl->tpl_vars['max'] = new Smarty_variable(ceil($_smarty_tpl->tpl_vars['count']->value/$_smarty_tpl->tpl_vars['limit']->value)+1, null, 0);?><?php }?>
<?php $_smarty_tpl->tpl_vars['queryString'] = new Smarty_variable('', null, 0);?>
<?php if ((($tmp = @$_smarty_tpl->tpl_vars['query']->value)===null||$tmp==='' ? '' : $tmp)) {?>
<?php $_smarty_tpl->tpl_vars['query'] = new Smarty_variable(explode(',',$_smarty_tpl->tpl_vars['query']->value), null, 0);?>
<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['query']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
<?php if ((($tmp = @$_smarty_tpl->tpl_vars['_param']->value['get'][$_smarty_tpl->tpl_vars['v']->value])===null||$tmp==='' ? '' : $tmp)) {?><?php $_smarty_tpl->tpl_vars['queryString'] = new Smarty_variable((((($_smarty_tpl->tpl_vars['queryString']->value).('&amp;')).($_smarty_tpl->tpl_vars['v']->value)).('=')).($_smarty_tpl->tpl_vars['_param']->value['get'][$_smarty_tpl->tpl_vars['v']->value]), null, 0);?><?php }?>
<?php } ?>
<?php }?>
<section class="page">
<ul>
<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['name'] = 'sec';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'] = (int) $_smarty_tpl->tpl_vars['min']->value;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['max']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] = 1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total']);
?>
<li>
<?php if ($_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']==$_smarty_tpl->tpl_vars['page']->value) {?>
<span><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['sec']['index'];?>
</span>
<?php } else { ?>
<a href="<?php echo $_smarty_tpl->tpl_vars['_param']->value['page'];?>
?p=<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['sec']['index'];?>
<?php echo $_smarty_tpl->tpl_vars['queryString']->value;?>
"><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['sec']['index'];?>
</a>
<?php }?>
</li>
<?php endfor; endif; ?>
</ul>
<div>全<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
件（<?php echo ceil(($_smarty_tpl->tpl_vars['count']->value/$_smarty_tpl->tpl_vars['limit']->value));?>
ページ）</div>
</section>
<?php }} ?>
